Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support to decode IEEE754 32-bit floats over CAN #216

Merged
merged 4 commits into from
Dec 10, 2024

Conversation

harrison-e
Copy link
Contributor

Changes

  • Calypso can now read the bits of a CANPoint as an IEEE754 32-bit float (see Support Floats Calypso#75).
  • To accommodate this, a new field has been added to the CAN spec. ieee754_f32 is an optional boolean field in the CANPoint spec, which indicates that the CANPoint should be decoded as an f32.
  • BMS/Debug/Spare3 is now an IEEE754 32-bit float, for testing.

Notes

  • CANPoints that wish to use this feature must specify the ieee754_f32 field as true in the JSON.

Closes Calypso #75

@harrison-e harrison-e requested a review from jr1221 December 10, 2024 20:58
@harrison-e harrison-e self-assigned this Dec 10, 2024
Copy link
Contributor

@jr1221 jr1221 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small things to check out.

cangen/can-messages/bms.json Outdated Show resolved Hide resolved
cangen/README.md Outdated Show resolved Hide resolved
cangen/README.md Outdated Show resolved Hide resolved
@harrison-e harrison-e merged commit c2061ae into main Dec 10, 2024
1 of 2 checks passed
@harrison-e harrison-e deleted the feature/can-spec-ieee754-f32 branch December 10, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Floats
2 participants